import http from '@/utils/request';

export function reservation(data: any) {
    return http.post('/api/visitor/reservation', data, {}); //custom:{showErrorToast: false}
}

export function getVisitorHistoryPageApi(params: any) {
    return http.get('/api/visitor/getPage', {params});
}

export function getCampuses() {
    return http.get('/api/visitor/campuses')
}

export function getVisitorTypes() {
    return http.get('/api/visitor/visitor-types')
}

export function getApprovalStatusEnum() {
    return http.get('/api/visitor/getApprovalStatusEnum')
}

export function errorReportApi(data: any): any {
    return http.post('/api/errorReport', data, {})
}
